<?
include 'db_info.php';
include 'alert.php';

// must insert admin authority test... someday...

// empty 'team' table
$query_string = "TRUNCATE TABLE `team`";
$query = mysqli_query($connect, $query_string);
// empty 'team_time' table
$query_string = "TRUNCATE TABLE `team_time`";
$query = mysqli_query($connect, $query_string);
// remove each teamnames of 'timetable' table

for ($counter = 900; $counter < 2400; $counter += 50) {
	$query_string = "UPDATE timetable SET monday='', tuesday='', wednesday='', thursday='', friday='', saturday='', sunday=''";
	$query = mysqli_query($connect, $query_string);
}

Alert_index("cleared all data");
?>